{% extends "sidebar.html" %}
{% import "modules.html" as modules with context %}

{% block content %}
  {% for entry in entries %}
    {{ modules.entry(entry) }}
  {% endfor %}
  <div><a href="/archive">存档</a></div>
      {% if not settings.debug %}
      <script type="text/javascript">
	    //<![CDATA[
		(function() {
		    var links = document.getElementsByTagName('a');
		    var query = '?';
		    for (var i = 0; i < links.length; i++) {
			if (links[i].href.indexOf('#disqus_thread') >= 0) {
			    query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
			}
		    }
		    document.write('<' + 'script type="text/javascript" src="http://disqus.com/forums/yao-blog/get_num_replies.js' + query + '"></' + 'script>');
	    })();
	//]]>
    </script>
    {% endif %}
{% endblock %}
